<?php TPL::output('aomas/global/header.tpl.htm'); ?>
<link rel="stylesheet" href="<?php echo G_STATIC_URL; ?>/aomas/css/common/toast.style.css">
<link rel="stylesheet" href="<?php echo G_STATIC_URL; ?>/aomas/css/cart/cart.css">

        <div class="cart">
            <?php TPL::output('aomas/global/nav.tpl.htm'); ?>

            <div class="cart-section">

                <p class="cart-title">购物清单</p>    

                <div class="row cart-header">
                    <div class="col-md-5 col-sm-5 col-xs-5">商品信息</div>
                    <div class="col-md-1 col-sm-1 col-xs-1">单价</div>
                    <div class="col-md-1 col-sm-1 col-xs-1">数量</div>
                    <div class="col-md-1 col-sm-1 col-xs-1">小计</div>
                    <div class="col-md-4 col-sm-4 col-xs-4">操作</div>
                </div>

                <div class="cart-list">
                    <div class="cart-list-group">
                        <?php foreach($this->cart_goods as $key=>$item) {?>
                        <!-- 商品  -->
                        <div class="row cart-li">
                            <div class="col-md-5 col-sm-5 col-xs-5">
                                <div class="row">
                                    <!-- <div class="cart-radio col-md-1 col-sm-1 col-xs-1">
                                        <div class="am-table">
                                            <div class="am-tablecell">
                                                <span></span>
                                            </div>
                                        </div>
                                    </div> -->
    
                                    <div class="cart-li-img col-md-5 col-sm-5 col-xs-5">
                                        <img src="<?php echo get_goods_cover_url($item['goods_id'],'mid',$item['cover']);?>" alt="<?php echo $item['goods_name']; ?>">
                                    </div>
                                    <div class="cart-li-p col-md-7 col-sm-7 col-xs-7 cart-li-block">
                                        <div class="am-table">
                                            <div class="am-tablecell">
                                                <p class="cart-name"><?php echo $item['goods_name']; ?></p>
                                                <p class="cart-des"><?php echo $item['goods_brief']; ?></p>
                                            </div>
                                        </div>
                                  
                                    </div>

                                </div>
                              
                            </div>
                            <div class="col-md-1 cart-li-block col-sm-1 col-xs-1">
                                <div class="am-table">
                                    <div class="am-tablecell">
                                        <p class="cart-price">￥<?php echo $item['market_price'];?></p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-1 col-sm-1 col-xs-1 cart-li-block">
                           
                                <div class="am-table">
                                    <div class="am-tablecell">
                                        <div class="clearfix">
                                            <!--<div class="cart-num-do pull-left num-do-jian">-->
                                                    <!---->
                                            <!--</div>-->
                                            <!-- <div class="cart-num-do pull-left" style="border: 0;"></div> -->

                                            <div class="cart-num-input pull-left">
                                                <input type="text" value="1" disabled>
                                            </div>

                                            <!--<div class="cart-num-do pull-right num-do-jia">-->
                                                    <!---->
                                            <!--</div>-->
                                        </div>
                                        
                                    </div>
                                </div>
                               
                            </div>
                            <div class="col-md-1 col-sm-1 col-xs-1 cart-li-block">
                                <div class="am-table">
                                    <div class="am-tablecell">
                                        <!--<p class="cart-price">￥</p>-->
                                        <p class="cart-price-youhui">￥<?php echo $item['shop_price'];?></p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-4 cart-li-block">
                                <div class="am-table">
                                    <div class="am-tablecell" style="text-align: center">
                                        <button class="cart-del js-cart-del" data-id="<?php echo $item['goods_id'];?>">
                                            删除
                                        </button>
                                        <a class="cart-go"  href="<?php echo $item['jd_url'];?>" target="_blank"> 前往京东</a>

                                        <a class="cart-go" href="<?php echo $item['tb_url'];?>" target="_blank"> 前往淘宝</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php };?>

                        <!-- 赠品 -->
                        <div class="hide row cart-li">
                            <div class="col-md-6 col-sm-6 col-xs-6">
                                <div class="row">
                                    <div class="cart-radio col-md-1 col-sm-1 col-xs-1">
                                        <div class="am-table">
                                            <div class="am-tablecell">
                                               
                                            </div>
                                        </div>
                                    </div>
    
                                    <div class="cart-li-img col-md-4 col-sm-4 col-xs-4">
                                        <img src="" alt="">
                                    </div>
                                    <div class="cart-li-p col-md-7 cart-li-block">
                                        <div class="am-table">
                                            <div class="am-tablecell">
                                                <p class="cart-name">adsasdasdasasdasdasdasdasdasdasdasdasdasdasdasd</p>
                                                <p class="cart-des">asdasdasdasdasdasdasdasdasdasdasd</p>
                                            </div>
                                        </div>
                                    
                                    </div>

                                </div>
                                
                            </div>
                        </div>
                              
                    </div>
                </div>


                <!-- 相关推荐 -->
                <p class="cart-title">相关推荐</p>    
                <div class="section-prod-all">
                    <div class="pro-list">
                        <ul class=" row">
                            <?php foreach( $this->like_list AS $ket=>$val){ ?>
                            <li class="col-md-3 col-sm-3 col-xs-3">
                                <div class="pro-li-body">
                                    <div class="img-block" data-src="/product/goods-<?php echo $val['goods_id'] ?>/">
                                        <div class="am-table">
                                            <div class="am-tablecell">
                                                <img src="<?php echo get_goods_cover_url($val['goods_id'],'mid',$val['cover']); ?>" alt="<?php echo $val['goods_name']; ?>">
                                            </div>
                                        </div>
                                    </div>
                                    <p class="pro-li-title"><?php echo $val['goods_name']; ?></p>
                                    <p class="pro-li-des"><?php echo $val['goods_brief']?></p>
                                    <ul class="pro-li-label">
                                        <!-- <li data-color="#f00" data-src="#f00" style="border: 1px solid #f00" class="no-active">
                                            <span style="background: #f00"></span>
                                        </li>
                                        <li data-color="#0f0" data-src="#0f0" style="border: 1px solid #0f0">
                                            <span style="background: #0f0"></span>
                                        </li> -->

                                        <?php foreach($val['goods_style'] AS $sub_key=> $sub_item){ ?>

                                            <li data-color="<?php echo $sub_item['goods_color'];?>" data-src="<?php echo get_goods_cover_url($val['goods_id'],'mid',$sub_item['goods_color_pic']); ?>" style="border: 1px solid #f00" class="no-active">
                                                <span style="background: <?php echo $sub_item['goods_color'];?>"></span>
                                            </li>
                                        <?php }?>
                                    </ul>
                                    <div class="pro-li-price">
                                        <span class="new-price"><?php echo $val['shop_price']?>元</span>
                                        <span class="old-price"><?php echo $val['market_price']?>元</span>
                                    </div>

                                    <div class="pro-li-do">
                                        <a class="look-info" href="/product/goods-<?php echo $val['goods_id'] ?>/">查看详情</a>
                                        <a class="to-shop js-add-cart" data-id="<?php echo $val['goods_id'];?>">加入收藏夹</a>
                                    </div>
                                </div>
                            </li>
                            <?php };?>

                            
                        </ul>
                    </div>
                    
                    
                </div>
                

            </div>


            



            <!-- 尾部全局 -->
            <?php TPL::output('aomas/global/footer.tpl.htm'); ?>


        </div>
        <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
        <script src="<?php echo G_STATIC_URL; ?>/aomas/js/common/toast.script.js" type="text/javascript"></script>
        <script src="<?php echo G_STATIC_URL; ?>/aomas/js/common/common.js" type="text/javascript"></script>
        <script src="<?php echo G_STATIC_URL; ?>/aomas/js/cart/cart.js" type="text/javascript"></script>
    </body>
</html>